import java.util.Scanner;

public class IfDemo06 {
    public static void main(String[] args) {
        System.out.println("请输入年龄：");
        Scanner scanner = new Scanner(System.in);
        int age = scanner.nextInt();
        if (age <= 3) {
            System.out.println("幼儿园");
        } else if (age <= 12) {// 能走到这里age一定大于3的
            System.out.println("儿童");
        } else if (age <= 18) {
            System.out.println("少年");
        } else if (age <= 50) {
            System.out.println("中年");
        } else if (age <= 80) {
            System.out.println("老年");
        } else {
            System.out.println("非法年龄");

        }
    }
}
